package com.xy.day4.entity;

import java.io.Serializable;

public class Animal implements Serializable{
  
	private static final long serialVersionUID = 1332432L;

	private Integer animalId;

    private String animalName;

    private String animalWeight;

    private Type type;

    public Integer getAnimalId() {
        return animalId;
    }

    public void setAnimalId(Integer animalId) {
        this.animalId = animalId;
    }

    public String getAnimalName() {
        return animalName;
    }

    public void setAnimalName(String animalName) {
        this.animalName = animalName == null ? null : animalName.trim();
    }

    public String getAnimalWeight() {
        return animalWeight;
    }

    public void setAnimalWeight(String animalWeight) {
        this.animalWeight = animalWeight == null ? null : animalWeight.trim();
    }

	public Type getType() {
		return type;
	}

	public void setType(Type type) {
		this.type = type;
	}

	@Override
	public String toString() {
		return "Animal [animalId=" + animalId + ", animalName=" + animalName + ", animalWeight=" + animalWeight
				+ ", type=" + type + "]";
	}

    
}